home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12550 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.3 KB  |  55 lines

  1. Newsgroups: comp.object,comp.lang.c++,comp.lang.java
  2. Path: CERN.ch!news
  3. From: kruse@cms1.cern.ch (Andres Kruse)
  4. Subject: Re: Java: What's the Big Deal?
  5. In-Reply-To: "Erik P. DeBenedictis"'s message of Sat, 16 Mar 1996 19:08:41
  6.     -0800
  7. X-Nntp-Posting-Host: cms1.cern.ch
  8. Message-ID: <kr1wx4f3gqk.fsf@cms1.cern.ch>
  9. Followup-To: comp.object,comp.lang.c++,comp.lang.java
  10. Sender: kruse@cms1.cern.ch
  11. Organization: CERN Geneva
  12. X-Newsreader: Gnus v5.1
  13. References: <4i40ik$9dt@news4.digex.net> <milodDo5yDE.H8B@netcom.com>
  14.     <1996Mar14.124235.9729@friend.kastle.com> <4iane3$dr4@news4.digex.net>
  15.     <4iaqoh$582@engnews2.Eng.Sun.COM>
  16.     <MARKT.96Mar15150513@atlas.harlqn.co.uk> <314B8239.247D@netalive.com>
  17. Date: Wed, 20 Mar 1996 15:51:31 GMT
  18.  
  19. In article <314B8239.247D@netalive.com> "Erik P. DeBenedictis" <erikd@netalive.com> writes:
  20.  
  21.    Mark Tillotson wrote:
  22.    > I agree _totally_, but this world view is quite understandable given
  23.    > the wording in the Java white paper from Sun...
  24.  
  25.    I have another observation on this. Remember how Java's lack of pointer
  26.    is supposed to make it secure? The rationale is that the ability to
  27.    cast an integer into a pointer permits "wild" memory references that could
  28.    be used to do some damage.
  29.  
  30.    They must have been thinking about Windows 3.1 because all other O. S.'s
  31.    protect against wild memory references in other ways.
  32.  
  33.    Erik DeBenedictis
  34.  
  35. eh.. what? The only protection you usually get is that your process
  36. is not able/allowed to mess around with other processes' memory.
  37. This protection is there so that your code cannot crash the system
  38. and can also not be used to get unprivileged access to resources.
  39.  
  40. But: The whole mess you can do with pointers in your own data 
  41. address space is not at all adressed by this. And there indeed
  42. a lack of pointers makes your code secure, where "secure" means
  43. that you protect parts of your code against other parts, or if
  44. you wish you guarantee privacy to every object: It can only
  45. communicate to the outside world via documented channels,
  46. i.e. method invocation of other objects or other public
  47. stuff.
  48.  
  49.     Andres
  50. -- 
  51. ------------------------------------------------------------
  52. Andres Kruse  | CERN Geneva, ECP division, CMD (DAQ for CMS)
  53. kruse@cern.ch | "Let the good times roll!"
  54. ------------------------------------------------------------
  55.